package com.xxl.job.admin.dao;

import java.util.Date;
import java.util.Map;

import com.ibm.risk.common.vo.PagedQueryResult;
import com.xxl.job.admin.core.model.JobLog;

/**
 * job log
 * @author xuxueli 2016-1-12 18:03:06
 */
public interface IJobLogDao {
	
	public PagedQueryResult<JobLog> pageList(int offset, int pagesize, Long jobGroup, Long jobId, Date triggerTimeStart, Date triggerTimeEnd);
	
	public JobLog load(Long id);

	public int save(JobLog xxlJobLog);

	public int updateTriggerInfo(JobLog xxlJobLog);

	public int updateHandleInfo(JobLog xxlJobLog);
	
	public int delete(Long jobId);

	public int triggerCountByHandleCode(int handleCode);

	public Map<String, Object> triggerCountByDay(Date from, Date to, String handleCode);

}
